import http from "@/utils/request"

export default {
	index: {
		method: `company.companyOrder.index`,
		name: "订单列表",
		get: async function (data = {}) {
			return await http.post(this.method, data);
		}
	},
	getStatusList: {
		method: `company.companyOrder.getStatus`,
		name: "状态列表",
		get: async function (data = {}) {
			return await http.post(this.method, data);
		}
	},
	getPayTypeList: {
		method: `company.companyOrder.getPayType`,
		name: "支付类型",
		get: async function (data = {}) {
			return await http.post(this.method, data);
		}
	},
	downLoadCode: {
		method: `company.companyOrder.downLoadCode`,
		name: "下载激活码",
		get: async function (data = {}) {
			return await http.post(this.method, data);
		}
	},
	info: {
		method: `company.companyOrder.info`,
		name: "订单详情",
		post: async function (data = {}) {
			return await http.post(this.method, data);
		}
	},
	store: {
		method: `company.companyOrder.store`,
		name: "订单保存",
		post: async function (data = {}) {
			return await http.post(this.method, data);
		}
	},
	cancelOrder: {
		method: `company.companyOrder.cancelOrder`,
		name: "取消订单",
		post: async function (data = {}) {
			return await http.post(this.method, data);
		}
	},
	closeOrder: {
		method: `company.companyOrder.closeOrder`,
		name: "取消订单",
		post: async function (data = {}) {
			return await http.post(this.method, data);
		}
	},
	payOrder: {
		method: `company.companyOrder.payOrder`,
		name: "支付订单",
		post: async function (data = {}) {
			return await http.post(this.method, data);
		}
	},
	import: {
		method: `company.companyOrder.import`,
		name: "用户导入",
		post: async function (data = {}, config = {}) {
			return await http.post(this.method, data, config);
		}
	},
}
